import request from "@/utils/request"

export function queryRolePage(data) {
  return request({
    url: "/ACustomerRole/queryPage",
    method: "POST",
    data: data
  })
}

export function queryRoleList(data) {
  return request({
    url: "/ACustomerRole/queryList",
    method: "GET",
    params: data
  })
}

export function queryOneRole(data) {
  return request({
    url: "/ACustomerRole/queryOne",
    method: "get",
    params: data
  })
}


export function updateRole(data) {
  return request({
    url: "/ACustomerRole/update",
    method: "post",
    data: data
  })
}

export function insertRole(data) {
  return request({
    url: "/ACustomerRole/insert",
    method: "post",
    data: data
  })
}

export function deleteRole(data) {
  return request({
    url: "/ACustomerRole/update",
    method: "post",
    data: data
  })
}

export function queryMyRoleMenuList(data) {
  return request({
    url: "/ACustomerRole/queryMyRoleMenuList",
    method: "get",
    params: data
  })
}

export function bindMenu(data) {
  return request({
    url: "/ACustomRoleMenuRelation/bindMenu",
    method: "post",
    data: data
  })
}


